﻿<common:LayoutAwarePage x:Class="StoreAppLibDemo.Examples.Controls.PageHeaderPage"
                        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        xmlns:common="using:StoreAppLibDemo.Common"
                        xmlns:control="using:StoreAppLib.Controls"
                        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                        xmlns:local="using:StoreAppLibDemo.Examples.Controls"
                        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                        mc:Ignorable="d">

    <Grid Style="{StaticResource AppPageStyle}">
        <Grid.RowDefinitions>
            <RowDefinition Height="100" />
            <RowDefinition Height="40" />
            <RowDefinition />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Image Grid.Column="1"
                   Margin="0,0,50,0"
                   Source="ms-appx:///Assets/PageLogo.png" />
            <control:PageHeaderTextBlock Margin="120,0,0,0"
                                         HorizontalAlignment="Left"
                                         VerticalAlignment="Bottom"
                                         Text="Page Header" />
            <Button Margin="36,0,0,0"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Bottom"
                    Click="GoBack"
                    Content="Button"
                    Style="{StaticResource BackButtonStyle}" />

        </Grid>

        <TextBlock Grid.Row="3"
                   Margin="0,0,50,0"
                   HorizontalAlignment="Right"
                   VerticalAlignment="Center"
                   FontSize="9"
                   Text="Copyright ©  2012 Suresh Kumar T" />
        <Grid Grid.Row="2" Margin="120,0,50,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="40" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <TextBlock Style="{StaticResource BodyTextStyle}" TextWrapping="Wrap">
                <Run>Represents a Windows 8 Store Application page header control that helps developers to add a page header with built-in global navigation menu. Menu should be defined in App.xaml.cs file. Page header will have a right arrow which can be customized for individual pages. Pages can subscribe to global navigation menu item invoke event to pass navigation parameter to “Navigating To Page” or to cancel the navigation based on the state of the page.</Run>
                <LineBreak />
                <LineBreak />
                <Run>In this example global navigation menu is defined in App.xaml.cs constructor. To view menu in action tap on the Page header.</Run>
            </TextBlock>

        </Grid>
    </Grid>
</common:LayoutAwarePage>